<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo; 
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">

      <div class="picScroll-left">
        <a href="##" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="sPrev viewBoxCss"></a>
        <a href="##" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="sNext viewBoxCss"></a>
        <div class="bd viewBoxCss" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?>>
          <ul class="picList">
            <?php foreach($v['content'] as $key => $p):?>
            <li class="viewBoxCss picListLi" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?>>
              <div class="pic"><a href="<?php echo getArtLink($p['id']);?>" target="_blank"><img alt="<?php echo $p['title'];?>" class="viewBoxCss picListImg" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> src="<?php echo getThumbPath($p['img_url']);?>" /></a></div>
              <div class="title"><a class="viewBoxCss Atitle" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> href="<?php echo getArtLink($p['id']);?>" target="_blank"><?php echo cut_str($p['title'],$v['listTitleLength'],0);?></a></div>
              
              
              
              
              
              <p style="display:none;" class="content"><?php echo cut_content($p,$v['listContentLength'], 0, $v['listContentOut']); ?></p>
              
              
            </li>
            <?php endforeach; ?>
          </ul>
        </div>
      </div>
      <script type="text/javascript">
jQuery(".myBox<?php echo $v['id'];?> .picScroll-left").slide({ 
	mainCell:".bd ul",
	vis:<?php echo $v['picDisplayCount'];?>,
	autoPlay:<?php echo $v['autoPlay'];?>,
	scroll:<?php echo $v['scrollCount'];?>,
	interTime:<?php echo $v['interTime'];?>,
	prevCell:".sPrev",nextCell:".sNext",
	autoPage:1,
	effect:'<?php echo $v['effect'];?>'
	});
</script>
      <div class="clearfix"></div>
    </div>
  </div>
</div>
